package com.jnu.hospitalexamination.service;

import com.jnu.hospitalexamination.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jnu.hospitalexamination.entity.vo.OrdersVO;
import com.jnu.hospitalexamination.entity.vo.UserOrderVO;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
* @author Nowonder
* @description 针对表【orders】的数据库操作Service
* @createDate 2024-07-21 23:01:59
*/
public interface OrdersService extends IService<Orders> {
    /**
     * 根据医院ID和日期获取当天预约人数
     * @param hpId 医院ID
     * @param orderDate 预约日期
     * @return 当天预约人数
     */
    public Integer getOrderNum(Integer hpId, LocalDate orderDate);

    //获取用户预约列表
    public List<OrdersVO> getOrderList(Integer userid);

    public List<UserOrderVO> getUserOrderList();
}
